package com.zhentao.controller;

import com.zhentao.common.Result;
import com.zhentao.domain.UseBattery;
import com.zhentao.domain.vo.UseBatteryVO;
import com.zhentao.service.UseBatteryService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/useBatter")
@Tag(name = "电池使用情况")
public class UseBatteryController {
    @Autowired
    private UseBatteryService useBatteryService;

    @GetMapping("/useList")
    @Operation(summary = "获取电池使用情况")
    public Result<UseBatteryVO> getUseList(){
        return useBatteryService.getUseList();
    }
}
